<template>
  <a-spin :spinning="confirmLoading">
    <a-upload-dragger
      name="file"
      :multiple="true"
      action="https://www.mocky.io/v2/5cc8019d300000980a055e76"
    >
      <p class="ant-upload-drag-icon">
        <a-icon type="inbox" />
      </p>
      <p class="ant-upload-text">
        上传文件
      </p>
      <p class="ant-upload-hint">
        支持单次或批量上传。严禁上传公司资料或其他波段文件
      </p>
    </a-upload-dragger>
    <div style="margin-top: 30px"></div>
    <div
      :style="{
          // position: 'absolute',
          right: 0,
          bottom: 0,
          width: '100%',
          borderTop: '1px solid #e9e9e9',
          padding: '10px 16px',
          background: '#fff',
          textAlign: 'right',
          zIndex: 999,
        }"
    >
      <a-button :style="{ marginRight: '8px' }" @click="allclose">
        关闭
      </a-button>
      <a-button type="primary" @click="handleOk">
        保存
      </a-button>
    </div>
  </a-spin>

</template>

<script>

  import { httpAction, getAction } from '@/api/manage'
  import pick from 'lodash.pick'
  import { validateDuplicateValue } from '@/utils/util'
  import JFormContainer from '@/components/jeecg/JFormContainer'
  export default {

    name: 'EnclosureForm',
    components: {
      JFormContainer
    },
    props: {
    },
    data() {
      return {

        confirmLoading: false,
      }
    },
    computed: {
     },
    created() {
      //如果是流程中表单，则需要加载流程表单data

    },
    beforeCreate() {
      // this.form = this.$form.createForm(this, { name: 'dynamic_form_item' });
      // this.form.getFieldDecorator('boxType', { initialValue: [], preserve: true });

      // this.form.getFieldDecorator('keys', { initialValue: [], preserve: true });
    },
    methods: {
      allclose(){
        this.$emit('allclose');
      },
    }
  }

</script>

<style lang="less" scoped>

</style>